//
//  AppDelegate.h
//  Inner  Voice
//
//  Created by 徐海宇 on 16/2/27.
//  Copyright © 2016年 徐海宇. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <CoreData/CoreData.h>
#import "RecommenViewController.h"
#import "InChannelViewController.h"
#import "InPlayerViewController.h"

@interface AppDelegate : UIResponder <UIApplicationDelegate>

@property (strong, nonatomic) UIWindow *window;

//@property (nonatomic,weak)UIView *playingView;

@property (nonatomic,copy)NSString *str;

@property(nonatomic,strong)UserModel *userModel;

@property (strong, nonatomic) RecommenViewController *viewController;

@property (strong, nonatomic) InChannelViewController *channelController;

@property (strong, nonatomic) InPlayerViewController *InPlayerViewController;


@property (readonly, strong, nonatomic) NSManagedObjectContext *managedObjectContext;

@property (readonly, strong, nonatomic) NSManagedObjectModel *managedObjectModel;

@property (readonly, strong, nonatomic) NSPersistentStoreCoordinator *persistentStoreCoordinator;

@property (nonatomic, assign)NSInteger network;


- (void)saveContext;

- (NSURL *)applicationDocumentsDirectory;

+ (AppDelegate *)shareAppdelegate;

- (BOOL)canConnectedToTheInternet;


//沙盒
+ (NSString *)sandBoxPath;

@end

